home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / frad2.doc < prev    next >
Text File  |  1995-03-31  |  1KB  |  36 lines

  1. (User.programs) 
  2. Item: 119 by _Guest_ at hpcvbbs.UUCP 
  3. Author: [Michael lowry] 
  4.   Subj: Would you write the prg.? 
  5.   Keyw: decimal -> fraction*radical of fraction. 
  6.   Date: Thu Oct 04 1990 01:20  
  7. ---------- 
  8.   Resp: 1 of 3 by _morton at hpcvbbs.UUCP 
  9. Author: [Mr. Morton] 
  10.   Date: Mon Oct 08 1990 15:19  
  11.  
  12. [Note: Also see QRAD, someone else's approach to this.  -jkh-] 
  13.  
  14. Michael: 
  15. Here is a program called "FRAD2" which, given a decimal fraction, 
  16. will return the value "A/B*SQRT(C/D)" based on the algorithm 
  17. provided by Joe Horn. This program uses two other routines, "TJ" 
  18. and "TK" which will be provided in the next two messages. (I 
  19. haven't figured out how to send more than one file to a message.) 
  20. The program also uses the prime number program "PF" written 
  21. by Joe Horn. I have renamed his program "PRIME" as you will see 
  22. in "FRAD2". I apologize for the bad programming style but 
  23. this is the first program I have written for the 48SX and it took 
  24. nearly five hours to get it running. I look forward to other 
  25. programs submitted by more experiences programmers along with 
  26. their critisisms of mine.  
  27.                             -- Larry Morton 
  28.                                (805) 733-4275 daytime 
  29.                                Santa Barbara, California 
  30.  
  31. Referring to "FRAD2", there are a few cases where the program 
  32. hickups such as "47/21", "87/89*SQRT(87/89)", "3*SQRT(1/3)", 
  33. etc. 
  34.  
  35. [Note: PRIME can be replaced by PF DTAG. -jkh] 
  36.